﻿/**
 * @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
 * For licensing, see LICENSE.html or http://ckeditor.com/license
 */

CKEDITOR.editorConfig = function (config) {

    // %REMOVE_START%
    // The configuration options below are needed when running CKEditor from source files.
    if (window.IsDebug) {
        
        config.plugins = 'dialogui,dialog,a11yhelp,basicstyles,clipboard,panel,floatpanel,menu,contextmenu,resize,button,toolbar,list,indent,enterkey,entities,floatingspace,htmlwriter,wysiwygarea,image,magicline,maximize,pastetext,pastefromword,removeformat,sourcearea,specialchar,tab,table,tabletools,undo,find,menubutton,tableresize,onchange';
        config.skin = 'moono';
    }

    // %REMOVE_END%

    // Define changes to default configuration here.
    // For the complete reference:
    // http://docs.ckeditor.com/#!/api/CKEDITOR.config

    // The toolbar groups arrangement, optimized for two toolbar rows.
    //config.toolbarGroups = [
    //	{ name: 'clipboard',   groups: [ 'clipboard', 'undo' ] },
    //	{ name: 'editing',     groups: [ 'find', 'selection', 'spellchecker' ] },
    //	{ name: 'links' },
    //	{ name: 'insert' },
    //	{ name: 'forms' },
    //	{ name: 'tools' },
    //	{ name: 'document',	   groups: [ 'mode', 'document', 'doctools' ] },
    //	{ name: 'others' },
    //	'/',
    //	{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
    //	{ name: 'paragraph',   groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ] },
    //	{ name: 'styles' },
    //	{ name: 'colors' },
    //	{ name: 'about' }
    //];
    config.extraPlugins = '3linetable,formattag,screenshot,tableborder,savetoel,pastehandle,reference,highlight';
    CKEDITOR.config.toolbar_PI =
        [
            { name: 'document', items: ['SaveToEl', 'FormatTag'] },
            { name: 'clipboard', groups: ['clipboard', 'undo'], items: ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo'] },
            { name: 'basicstyles', groups: ['basicstyles', 'cleanup'], items: ['Subscript', 'Superscript', '-', 'RemoveFormat'] },
            { name: 'insert', items: ['Screenshot', 'Image', '-', 'TreeLineTable', 'Table', 'TableBorder', '-', 'SpecialChar'] },
            { name: 'tools', items: ['Maximize'] }
        ];
    CKEDITOR.config.toolbar_Cpr =
        [
            { name: 'document', items: ['SaveToEl', 'FormatTag'] },
            { name: 'clipboard', groups: ['clipboard', 'undo'], items: ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo'] },
            { name: 'basicstyles', groups: ['basicstyles', 'cleanup'], items: ['Subscript', 'Superscript', '-', 'RemoveFormat'] },
            { name: 'insert', items: ['TreeLineTable', 'Table', 'TableBorder', '-', 'SpecialChar', 'AddReference'] },
            { name: 'tools', items: ['Maximize', 'fastimage'] }
        ];

    CKEDITOR.config.toolbar_Dmp =
        [
            { name: 'document', items: ['SaveToEl', 'FormatTag'] },
            { name: 'clipboard', groups: ['clipboard', 'undo'], items: ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo', 'Find'] },
            { name: 'basicstyles', groups: ['basicstyles', 'cleanup'], items: ['Subscript', 'Superscript', '-', 'RemoveFormat'] },
            { name: 'insert', items: ['Screenshot', 'Image', '-', 'TreeLineTable', 'Table', 'TableBorder', '-', 'SpecialChar', 'AddReference'] },
            { name: 'tools', items: ['Maximize'] }
        ];
    config.toolbar = "Cpr";

    // Remove some buttons, provided by the standard plugins, which we don't
    // need to have in the Standard(s) toolbar.
    //config.removeButtons = 'Underline,Subscript,Superscript';

    // Se the most common block elements.
    config.format_tags = 'p;h1;h2;h3;pre';

    // Make dialogs simpler.
    config.removeDialogTabs = 'image:advanced;link:advanced';
    config.enterMode = CKEDITOR.ENTER_BR;
    config.disableObjectResizing = true;
    config.specialChars = ['※', '◆', '℃', '±', '…', '—', '•', '●', '→', '～', '(', ')', '[', ']', '{', '}', '≥', '≤', '＞', '＜',
'①', '②', '③', '④', '⑤', '⑥', '⑦', '⑧', '⑨', '⑩',
'(1)', '(2)', '(3)', '(4)', '(5)', '(6)', '(7)', '(8)', '(9)', '(10)',
'Ⅰ', 'Ⅱ', 'Ⅲ', 'Ⅳ', 'Ⅴ', 'Ⅵ', 'Ⅶ', 'Ⅷ', 'Ⅸ', 'Ⅹ', 'Ⅺ', 'Ⅻ',
'α', 'β', 'γ', 'δ', 'ε', 'ζ', 'η', 'θ', 'ι', 'κ', 'λ', 'μ', 'ν', 'ξ', 'ο', 'π', 'ρ', 'σ', 'τ', 'υ', 'φ', 'χ', 'ψ', 'ω',
'Α', 'Β', 'Γ', 'Δ', 'Ε', 'Ζ', 'Η', 'Θ', 'Ι', 'Κ', 'Λ', 'Μ', 'Ν', 'Ξ', 'Ο', 'Π', 'Ρ', 'Σ', 'Τ', 'Υ', 'Φ', 'Χ', 'Ψ', 'Ω'];
    //config.allowedContent = "table[!cellspacing,!cellpadding]";
};
